﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Batman.DLL.Todo.Data.Migrations.Todo
{
    public partial class _202009192 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_Group",
                table: "Group");

            migrationBuilder.RenameTable(
                name: "Group",
                newName: "TodoGroup");

            migrationBuilder.AddPrimaryKey(
                name: "PK_TodoGroup",
                table: "TodoGroup",
                column: "Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_TodoGroup",
                table: "TodoGroup");

            migrationBuilder.RenameTable(
                name: "TodoGroup",
                newName: "Group");

            migrationBuilder.AddPrimaryKey(
                name: "PK_Group",
                table: "Group",
                column: "Id");
        }
    }
}
